<?php
require_once('../../config.php');
Doctrine::loadModels('../../models');

if( $_REQUEST["checklist_id"])
{
	$checklist_id = strip_tags($_REQUEST["checklist_id"]);
    $status_id = strip_tags($_REQUEST["status_id"]);
	$modified = date("Y-m-d H:m:s");
	 	
	$q = Doctrine_Query::create();

	$rows = $q->update('AgentChecklist')
          ->set ('status_id', $status_id ,
          			'modified', $modified)
          ->where('checklist_id ='.$checklist_id)
          ->execute();       
          
}
	
?>